import Vue from 'vue'
import VueAMap from 'vue-amap'
Vue.use(VueAMap)

// 初始化vue-amap
if (!Vue.prototype.$isServer) {
  VueAMap.initAMapApiLoader({
    // 高德的key
    key: 'eee62df3de8f69084383373de805d95b',
    // 插件集合
    plugin: [
      'Geolocation',
      'Marker',
      'ToolBar',
      'Circle',
      'PolyLine',
      'Autocomplete',
      'PlaceSearch',
      'Geocoder'
    ],
    uiVersion: '1.0',
    v: '1.4.8'
  })
}
